class UserInfo {
  String? userId;
  String? phoneNum;
  String? name;
  String? openId;
  String? createTime;
  String? updateTime;
  int? status;
  String? email;
  String? avatarUrl;
  String? enterprise;
  String? position;
  int? gender;
  String? vcode;
  String? pvcode;

  UserInfo(
      {this.userId,
      this.phoneNum,
      this.name,
      this.openId,
      this.createTime,
      this.updateTime,
      this.status,
      this.email,
      this.avatarUrl,
      this.gender,
      this.vcode,
      this.pvcode,
      this.enterprise,
      this.position});

  UserInfo.fromJson(Map<String, dynamic> json) {
    userId = json["userId"];
    phoneNum = json["phoneNum"];
    name = json["name"];
    openId = json["openId"];
    createTime = json["createTime"];
    updateTime = json["updateTime"];
    status = json["status"];
    email = json["email"];
    avatarUrl = json["avatarUrl"];
    gender = json["gender"];
    vcode = json["vcode"];
    pvcode = json["pvcode"];
    enterprise = json["enterprise"];
    position = json["position"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["userId"] = userId;
    _data["phoneNum"] = phoneNum;
    _data["name"] = name;
    _data["openId"] = openId;
    _data["createTime"] = createTime;
    _data["updateTime"] = updateTime;
    _data["status"] = status;
    _data["email"] = email;
    _data["avatarUrl"] = avatarUrl;
    _data["gender"] = gender;
    _data["vcode"] = vcode;
    _data["pvcode"] = pvcode;
    _data["enterprise"] = enterprise;
    _data["position"] = position;

    return _data;
  }
}
